﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Story
{

    public class DialogStateNext : DialogStateBase
    {

        public DialogStateNext(DialogState state, StoryDialogManager controller)
            : base(state, controller)
        {

        }
        public override void Enter()
        {
            dialogManager.currentIndex++;
            if (dialogManager.currentIndex >= dialogManager.listDialogs.Count)
            {
                dialogManager.SwitchState(DialogState.Hide);
            }
            else
            {
                dialogManager.SwitchState(DialogState.Content);
            }
        }
    }

}


